using System.Collections.ObjectModel;

namespace CitiSurface
{
    /**
     * Interviewee object
     */
    public class Interviewee
    {
        private readonly int _tagValue;
        public int TagValue
        {
            get { return _tagValue; }
        }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Role InterviewRole { get; set; }
        public ObservableCollection<Interview> Interviews { get; private set; } 

        public Interviewee(int tagValue)
        {
            _tagValue = tagValue;
            Interviews = new ObservableCollection<Interview>();
        }

        public Interviewer Interviewer
        {
            get
            {
                if(Interviews.Count > 0)
                {
                    return Interviews[0].Interviewer;
                }
                return null;
            }
        }

        //constructor
        public Interviewee() { }
        public Interviewee(string FirstName, string LastName, ObservableCollection<Interview> Interviews)
        {
            this.FirstName = FirstName;
            this.LastName = LastName;
            this.Interviews = Interviews;
        }

    }
}
